<?php

/**
 * SlideshowWidget class
 *
 * @author Julot <andy.julot@gmail.com>
 * @since Thursday, July 14, 2011. 12:01 PM
 */
class SlideshowWidget extends CWidget {

	public $name;
	public $options = array();

	public function run() {
		$path = Yii::app()->params['file'] . "/slideshow/$this->name";
		$folder = new Folder($path);
		$data = array(
			'name'=>$this->name,
			'folder'=>$folder,
			'options'=>$this->options
		);
		$this->render('slideshow', $data);
	}

}
